package com.zlm.user.emp.service.impl;

import com.zlm.common.base.AbstractBaseService;
import com.zlm.common.entity.EmpPositionSignDO;
import com.zlm.user.emp.dao.EmpPositionSignDao;
import com.zlm.user.emp.service.EmpPositionSignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @Author: duyufu
 * @Date: 2019/5/7 9:49
 */
@Service
public class EmpPositionSignServiceImpl extends AbstractBaseService<EmpPositionSignDao, EmpPositionSignDO> implements EmpPositionSignService {
    @Autowired
    @Override
    public void setBaseDao(EmpPositionSignDao empPositionSignDao) {
        this.baseDao = empPositionSignDao;
    }

    @Override
    public Integer countEmpPositionSign(Integer pracId, Integer empId) {
        return baseDao.countEmpPositionSign(pracId,empId);
    }

//    @Override
//    public Integer countEmpPositionSign(Integer empId) {
//        return baseDao.countEmpPositionSign(empId);
//    }

    @Override
    public void saveEmpPositionSign(List<Integer> partList, Integer pracId, Integer empId) {
        baseDao.saveEmpPositionSign(partList,pracId,empId);
    }
}
